<?php

namespace App\Http\Controllers;

use App\Models\Content;
use Illuminate\Support\Facades\Redis;

class HomeController extends Controller
{
    public function index()
    {
//        Redis::set('username', 'aaa');
//        Redis::set('age', 33);
        return view("index");
    }

    public function test()
    {
        Redis::set('username', 'aaa');
        return Redis::get('username');
//        \Cache::store("redis-test")->put('app', 'yuanhao', 10);
    }
}
